// pages/center/my-qrCode/my-qrCode.js
var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    url:"",
    imgalist: [],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: '我的二维码',
    })
    this.setData({
      url: app.globalData.baseUrl + '/index/shopCodeCreate' + '?shop_id=' + app.globalData.shopId,
    })
  },

  viewbigimg: function (e) {
    //console.log(e);
    var src = e.currentTarget.dataset.src;
    console.log(src);

    var imgArr = [];
    imgArr.push(src);
    //console.log(imgArr)
    wx.previewImage({
      current: imgArr[0],//当前图片地址
      urls: imgArr
    })
  },



})